FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER Lion Li

RUN mkdir -p /haowu/auth/logs  \
    /haowu/auth/temp  \
    /haowu/skywalking/agent

WORKDIR /haowu/auth

ENV SERVER_PORT=9210

EXPOSE ${SERVER_PORT}

ADD ./target/haowu-auth.jar ./app.jar

ENTRYPOINT ["java", \
            "-Djava.security.egd=file:/dev/./urandom", \
            "-Dserver.port=${SERVER_PORT}", \
#            "-Dskywalking.agent.service_name=haowu-auth", \
#            "-javaagent:/haowu/skywalking/agent/skywalking-agent.jar", \
            "-jar", "app.jar"]
